package com.itheima.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import jdk.nashorn.internal.objects.annotations.Property;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author zy9524
 * @company SocialistSuccessor
 * @date 2019/6/14 18:54
 */
/**
 *@Data   //@ToString，@EqualsAndHashCode和@Getter/@Setter和的特征@RequiredArgsConstructor
 *@NoArgsConstructor //  无参构造
 *@AllArgsConstructor //全参构造
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private Integer id;
    private String  username;
    private String password;
    private String sex;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

}
